﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Web.SystemLogin.Models;
using DreamBuilder.Common;

namespace Web.SystemLogin.ServiceContract
{
    [ServiceContract]
    public interface ISystemLoginService
    {
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        string CheckLoginNameAvailable(string loginName);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool CheckUserPassword(string userID, string passwd);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        void UpdateUserLoginInfo(string userID);


        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        User GetCurrentUser(string userID);
    }
}
